package com.po.web;

import com.po.pojo.Label;
import com.po.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * @author zxw
 * @date 2020/7/31 17:24
 */
@RestController
@RequestMapping("/label")
public class LabelController {
    @Autowired
    private LabelService labelService;

    @PostMapping
    public ResponseEntity insert(@RequestBody Label label) {
        labelService.insert(label);
        return ResponseEntity.ok("插入label成功");
    }
}
